#ifndef FRAMEWORK
#define FRAMEWORK

#include <cmath>
#include <iostream>

using namespace std;

class ThreeDPoint {
   private:
    int __x;
    int __y;
    int __z;

   public:
    ThreeDPoint() {
        __x = 1;
        __y = 0;
        __z = 0;
    }

    ThreeDPoint(int x, int y, int z) {
        __x = x;
        __y = y;
        __z = z;
    }

    int getX() const { return __x; }
    int getY() const { return __y; }
    int getZ() const { return __z; }

    double distance(const ThreeDPoint& p) {
        double dis_sqr = (__x - p.__x) * (__x - p.__x) + (__y - p.__y) * (__y - p.__y) + (__z - p.__z) * (__z - p.__z);
        return sqrt(dis_sqr);
    }
};

#endif